package com.webchat.domain.vo.response.openapi;


import com.webchat.domain.vo.dto.BaseAddressDTO;
import lombok.Data;

@Data
public class LogisticsDetailRespVO {

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 当前时间
     */
    private long currTime;

    /**
     * 当前物流位置
     */
    private BaseAddressDTO currentStation;

    /**
     * 下一站物流位置
     */
    private BaseAddressDTO nextStation;

    private String content = "";


    /**
     * Mock 测试数据
     *
     * @param orderNo
     * @return
     */
    public static LogisticsDetailRespVO mock(String orderNo) {
        LogisticsDetailRespVO logistics = new LogisticsDetailRespVO();
        logistics.setOrderNo(orderNo);
        logistics.setCurrTime(System.currentTimeMillis());
        logistics.setCurrentStation(new BaseAddressDTO("北京", "北京市", "海淀区"));
        logistics.setNextStation(new BaseAddressDTO("陕西省", "西安市", "未央区"));
        return logistics;
    }

}
